home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / rdblib / test.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-05-08  |  19.7 KB  |  665 lines

  1. VERSION 2.00
  2. Begin Form Form1 
  3.    BackColor       =   &H00C0C0C0&
  4.    Caption         =   "Royce D. Bacon (RDB) Common Library Demo"
  5.    ClientHeight    =   5970
  6.    ClientLeft      =   1140
  7.    ClientTop       =   1080
  8.    ClientWidth     =   7740
  9.    Height          =   6660
  10.    Icon            =   TEST.FRX:0000
  11.    Left            =   1080
  12.    LinkTopic       =   "Form1"
  13.    ScaleHeight     =   5970
  14.    ScaleWidth      =   7740
  15.    Top             =   450
  16.    Width           =   7860
  17.    Begin PictureBox cMsg 
  18.       BackColor       =   &H000000FF&
  19.       Height          =   1000
  20.       Left            =   0
  21.       ScaleHeight     =   975
  22.       ScaleWidth      =   975
  23.       TabIndex        =   1
  24.       Top             =   0
  25.       Width           =   1000
  26.    End
  27.    Begin PictureBox PnlHelp 
  28.       BackColor       =   &H000000FF&
  29.       Height          =   1000
  30.       Left            =   0
  31.       ScaleHeight     =   975
  32.       ScaleWidth      =   975
  33.       TabIndex        =   4
  34.       Top             =   0
  35.       Width           =   1000
  36.    End
  37.    Begin PictureBox CMDialog1 
  38.       BackColor       =   &H000000FF&
  39.       Height          =   1000
  40.       Left            =   0
  41.       ScaleHeight     =   975
  42.       ScaleWidth      =   975
  43.       TabIndex        =   5
  44.       Top             =   0
  45.       Width           =   1000
  46.    End
  47.    Begin PictureBox BtnEject 
  48.       BackColor       =   &H000000FF&
  49.       Height          =   1000
  50.       Left            =   0
  51.       ScaleHeight     =   975
  52.       ScaleWidth      =   975
  53.       TabIndex        =   9
  54.       Top             =   0
  55.       Width           =   1000
  56.    End
  57.    Begin TextBox TxtDate 
  58.       BackColor       =   &H00C0C0C0&
  59.       Height          =   375
  60.       Left            =   4020
  61.       TabIndex        =   14
  62.       Tag             =   "Enter the date to be validated"
  63.       Text            =   "01/01/94"
  64.       Top             =   4620
  65.       Width           =   1095
  66.    End
  67.    Begin TextBox Txtprintwidth 
  68.       BackColor       =   &H00C0C0C0&
  69.       Height          =   375
  70.       Left            =   6660
  71.       TabIndex        =   11
  72.       Tag             =   "Enter the line width to use"
  73.       Text            =   "65"
  74.       Top             =   3060
  75.       Width           =   555
  76.    End
  77.    Begin TextBox Txtfmtline 
  78.       BackColor       =   &H00C0C0C0&
  79.       Height          =   375
  80.       Left            =   3960
  81.       TabIndex        =   10
  82.       Tag             =   "Enter the beginning line for the text to print on"
  83.       Text            =   "10"
  84.       Top             =   3060
  85.       Width           =   555
  86.    End
  87.    Begin PictureBox BtnFormat 
  88.       BackColor       =   &H000000FF&
  89.       Height          =   1000
  90.       Left            =   0
  91.       ScaleHeight     =   975
  92.       ScaleWidth      =   975
  93.       TabIndex        =   13
  94.       Top             =   0
  95.       Width           =   1000
  96.    End
  97.    Begin TextBox Txtformatstring 
  98.       BackColor       =   &H00C0C0C0&
  99.       Height          =   795
  100.       Left            =   3960
  101.       MultiLine       =   -1  'True
  102.       ScrollBars      =   2  'Vertical
  103.       TabIndex        =   12
  104.       Tag             =   "Enter the string to be formatted"
  105.       Text            =   "This String Will Be Formatted Into individual lines for printing.  This text should be long enough to create multiple lines on the printed output."
  106.       Top             =   3480
  107.       Width           =   3675
  108.    End
  109.    Begin TextBox Txtrjcol 
  110.       BackColor       =   &H00C0C0C0&
  111.       Height          =   375
  112.       Left            =   7140
  113.       TabIndex        =   8
  114.       Tag             =   "Enter the rightmost column to align on"
  115.       Text            =   "40"
  116.       Top             =   2340
  117.       Width           =   435
  118.    End
  119.    Begin TextBox Txtrjformat 
  120.       BackColor       =   &H00C0C0C0&
  121.       Height          =   375
  122.       Left            =   4320
  123.       TabIndex        =   7
  124.       Tag             =   "Enter the format string to use for formatting the number"
  125.       Text            =   "###,##0.00"
  126.       Top             =   2340
  127.       Width           =   1455
  128.    End
  129.    Begin PictureBox Btnrightjustify 
  130.       BackColor       =   &H000000FF&
  131.       Height          =   1000
  132.       Left            =   0
  133.       ScaleHeight     =   975
  134.       ScaleWidth      =   975
  135.       TabIndex        =   15
  136.       Top             =   0
  137.       Width           =   1000
  138.    End
  139.    Begin TextBox Txtrjnum 
  140.       BackColor       =   &H00C0C0C0&
  141.       Height          =   375
  142.       Left            =   4320
  143.       TabIndex        =   6
  144.       Tag             =   "Enter the number to be formatted"
  145.       Text            =   "200"
  146.       Top             =   1920
  147.       Width           =   1455
  148.    End
  149.    Begin PictureBox ChkNewLine 
  150.       BackColor       =   &H000000FF&
  151.       Height          =   1000
  152.       Left            =   0
  153.       ScaleHeight     =   975
  154.       ScaleWidth      =   975
  155.       TabIndex        =   16
  156.       Top             =   0
  157.       Width           =   1000
  158.    End
  159.    Begin TextBox Txtctrline 
  160.       BackColor       =   &H00C0C0C0&
  161.       Height          =   315
  162.       Left            =   2760
  163.       TabIndex        =   3
  164.       Tag             =   "Enter the line number for the string to print on"
  165.       Text            =   "10"
  166.       Top             =   1320
  167.       Width           =   555
  168.    End
  169.    Begin PictureBox BtnCenter 
  170.       BackColor       =   &H000000FF&
  171.       Height          =   1000
  172.       Left            =   0
  173.       ScaleHeight     =   975
  174.       ScaleWidth      =   975
  175.       TabIndex        =   32
  176.       Top             =   0
  177.       Width           =   1000
  178.    End
  179.    Begin TextBox Txtctrstring 
  180.       BackColor       =   &H00C0C0C0&
  181.       Height          =   375
  182.       Left            =   3900
  183.       TabIndex        =   2
  184.       Tag             =   "Enter the string to be centered"
  185.       Text            =   "This String Will Be Centered"
  186.       Top             =   960
  187.       Width           =   3675
  188.    End
  189.    Begin TextBox TxtErrorNum 
  190.       BackColor       =   &H00C0C0C0&
  191.       Height          =   375
  192.       Left            =   4500
  193.       TabIndex        =   0
  194.       Tag             =   "Enter the error number to be generated"
  195.       Text            =   "10"
  196.       Top             =   240
  197.       Width           =   555
  198.    End
  199.    Begin PictureBox Command3D2 
  200.       BackColor       =   &H000000FF&
  201.       Height          =   1000
  202.       Left            =   0
  203.       ScaleHeight     =   975
  204.       ScaleWidth      =   975
  205.       TabIndex        =   33
  206.       Top             =   0
  207.       Width           =   1000
  208.    End
  209.    Begin PictureBox BtnGenError 
  210.       BackColor       =   &H000000FF&
  211.       Height          =   1000
  212.       Left            =   0
  213.       ScaleHeight     =   975
  214.       ScaleWidth      =   975
  215.       TabIndex        =   34
  216.       Top             =   0
  217.       Width           =   1000
  218.    End
  219.    Begin Label Label2 
  220.       Alignment       =   2  'Center
  221.       BackColor       =   &H00FF0000&
  222.       Caption         =   "RB_Validate_Date"
  223.       Height          =   255
  224.       Index           =   4
  225.       Left            =   0
  226.       TabIndex        =   29
  227.       Top             =   4320
  228.       Width           =   7755
  229.    End
  230.    Begin Label Label2 
  231.       Alignment       =   2  'Center
  232.       BackColor       =   &H00FF0000&
  233.       Caption         =   "RB_Text_Format"
  234.       Height          =   255
  235.       Index           =   3
  236.       Left            =   0
  237.       TabIndex        =   31
  238.       Top             =   2760
  239.       Width           =   7755
  240.    End
  241.    Begin Label Label2 
  242.       Alignment       =   2  'Center
  243.       BackColor       =   &H00FF0000&
  244.       Caption         =   "RB_Rjustify"
  245.       Height          =   255
  246.       Index           =   2
  247.       Left            =   0
  248.       TabIndex        =   30
  249.       Top             =   1620
  250.       Width           =   7755
  251.    End
  252.    Begin Label Label2 
  253.       Alignment       =   2  'Center
  254.       BackColor       =   &H00FF0000&
  255.       Caption         =   "RB_ErrorHandler"
  256.       Height          =   195
  257.       Index           =   1
  258.       Left            =   0
  259.       TabIndex        =   28
  260.       Top             =   0
  261.       Width           =   7755
  262.    End
  263.    Begin Label Label2 
  264.       Alignment       =   2  'Center
  265.       BackColor       =   &H00FF0000&
  266.       Caption         =   "RB_Center"
  267.       Height          =   255
  268.       Index           =   0
  269.       Left            =   0
  270.       TabIndex        =   27
  271.       Top             =   660
  272.       Width           =   7755
  273.    End
  274.    Begin Label Label1 
  275.       BackColor       =   &H00C0C0C0&
  276.       Caption         =   "Date To Be Validated"
  277.       Height          =   255
  278.       Index           =   9
  279.       Left            =   1860
  280.       TabIndex        =   26
  281.       Top             =   4680
  282.       Width           =   2055
  283.    End
  284.    Begin Label Label1 
  285.       BackColor       =   &H00C0C0C0&
  286.       Caption         =   "Print Line Width"
  287.       Height          =   255
  288.       Index           =   8
  289.       Left            =   4620
  290.       TabIndex        =   25
  291.       Top             =   3120
  292.       Width           =   1935
  293.    End
  294.    Begin Label Label1 
  295.       BackColor       =   &H00C0C0C0&
  296.       Caption         =   "Print Starting On Line"
  297.       Height          =   255
  298.       Index           =   7
  299.       Left            =   1920
  300.       TabIndex        =   24
  301.       Top             =   3120
  302.       Width           =   1935
  303.    End
  304.    Begin Label Label1 
  305.       BackColor       =   &H00C0C0C0&
  306.       Caption         =   "String To Be Formatted"
  307.       Height          =   255
  308.       Index           =   6
  309.       Left            =   1860
  310.       TabIndex        =   23
  311.       Top             =   3480
  312.       Width           =   1995
  313.    End
  314.    Begin Label Label1 
  315.       BackColor       =   &H00C0C0C0&
  316.       Caption         =   "At Column"
  317.       Height          =   255
  318.       Index           =   5
  319.       Left            =   5880
  320.       TabIndex        =   22
  321.       Top             =   2400
  322.       Width           =   1155
  323.    End
  324.    Begin Label Label1 
  325.       BackColor       =   &H00C0C0C0&
  326.       Caption         =   "Format To Use"
  327.       Height          =   255
  328.       Index           =   4
  329.       Left            =   1920
  330.       TabIndex        =   21
  331.       Top             =   2400
  332.       Width           =   2295
  333.    End
  334.    Begin Label Label1 
  335.       BackColor       =   &H00C0C0C0&
  336.       Caption         =   "Number To Be Formatted"
  337.       Height          =   255
  338.       Index           =   3
  339.       Left            =   1920
  340.       TabIndex        =   20
  341.       Top             =   1980
  342.       Width           =   2295
  343.    End
  344.    Begin Label Label1 
  345.       BackColor       =   &H00C0C0C0&
  346.       Caption         =   "On Line"
  347.       Height          =   255
  348.       Index           =   2
  349.       Left            =   1860
  350.       TabIndex        =   19
  351.       Top             =   1380
  352.       Width           =   795
  353.    End
  354.    Begin Label Label1 
  355.       BackColor       =   &H00C0C0C0&
  356.       Caption         =   "String To Be Centered"
  357.       Height          =   255
  358.       Index           =   1
  359.       Left            =   1860
  360.       TabIndex        =   18
  361.       Top             =   1020
  362.       Width           =   1995
  363.    End
  364.    Begin Label Label1 
  365.       BackColor       =   &H00C0C0C0&
  366.       Caption         =   "Error Number To Generate"
  367.       Height          =   255
  368.       Index           =   0
  369.       Left            =   1860
  370.       TabIndex        =   17
  371.       Top             =   300
  372.       Width           =   2535
  373.    End
  374.    Begin Menu MnuFunc 
  375.       Caption         =   "&Functions"
  376.       Begin Menu MnuCenter 
  377.          Caption         =   "&Center String"
  378.       End
  379.       Begin Menu MnuGenErr 
  380.          Caption         =   "Generate  &Error"
  381.       End
  382.       Begin Menu MnuFormat 
  383.          Caption         =   "&Format String"
  384.       End
  385.       Begin Menu MnuRightJustify 
  386.          Caption         =   "&Right Justify Number"
  387.       End
  388.       Begin Menu Mnudash1 
  389.          Caption         =   "-"
  390.       End
  391.       Begin Menu MnuPrint 
  392.          Caption         =   "&Print Page"
  393.       End
  394.    End
  395.    Begin Menu MnuHelp 
  396.       Caption         =   "&Help"
  397.       Begin Menu MnuErrHelp 
  398.          Caption         =   "&Help On Errors"
  399.       End
  400.       Begin Menu MnuAbout 
  401.          Caption         =   "&About"
  402.       End
  403.    End
  404. Sub BtnCenter_click ()
  405.     Dim newline As Integer
  406.     Dim cstring As String
  407.     ShowHelp BtnCenter, 0, 0
  408.     cstring = TxtCtrString.Text
  409.     nline = Val(TxtCtrLine.Text)
  410.     newline = ChkNewLine.Value
  411.     RB_Center cstring, nline, newline
  412. End Sub
  413. Sub BtnCenter_GotFocus ()
  414.     cmsg.Caption = BtnCenter.Tag
  415. End Sub
  416. Sub BtnCenter_LostFocus ()
  417.     cmsg.Caption = ""
  418. End Sub
  419. Sub BtnCenter_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  420.     ShowHelp BtnCenter, X, Y
  421. End Sub
  422. Sub BtnEject_Click ()
  423.     ShowHelp Btneject, 0, 0
  424.     printer.NewPage
  425.     printer.EndDoc
  426. End Sub
  427. Sub BtnEject_GotFocus ()
  428.     cmsg.Caption = Btneject.Tag
  429. End Sub
  430. Sub BtnEject_LostFocus ()
  431.     cmsg.Caption = ""
  432. End Sub
  433. Sub BtnEject_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  434.     ShowHelp Btneject, X, Y
  435. End Sub
  436. Sub BtnFormat_Click ()
  437.     Dim fstring As String
  438.     ShowHelp BtnFormat, 0, 0
  439.     fstring = TxtFormatString.Text
  440.     stringtoprint = RB_Text_Format(fstring, Val(TxtPrintWidth.Text))
  441.     printer.CurrentY = Val(TxtFmtLine.Text)
  442.     printer.CurrentX = 0
  443.     printer.Print stringtoprint
  444. End Sub
  445. Sub BtnFormat_GotFocus ()
  446.     cmsg.Caption = BtnFormat.Tag
  447. End Sub
  448. Sub BtnFormat_LostFocus ()
  449.     cmsg.Caption = ""
  450. End Sub
  451. Sub BtnFormat_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  452.     ShowHelp BtnFormat, X, Y
  453. End Sub
  454. Sub BtnGenError_Click ()
  455.     On Error GoTo commanderror
  456.     ShowHelp BtnGenError, 0, 0
  457. 10    Error TxtErrorNum.Text
  458.     MsgBox "Error ignored", MB_ICONINFORMATION, "RB_ErrorHandler Test"
  459.     Exit Sub
  460. commanderror:
  461.     ' Example of call to RB_ErrorHandler routine
  462.     erraction = RB_ErrorHandler("ErrTest", "commanderror")
  463.     Select Case erraction
  464.     Case 1
  465.         Resume 0
  466.     Case 2
  467.         Resume Next
  468.     End Select
  469.     Stop
  470. End Sub
  471. Sub BtnGenError_GotFocus ()
  472.     cmsg.Caption = BtnGenError.Tag
  473. End Sub
  474. Sub BtnGenError_LostFocus ()
  475.     cmsg.Caption = ""
  476. End Sub
  477. Sub BtnGenError_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  478.     ShowHelp BtnGenError, X, Y
  479. End Sub
  480. Sub BtnRightJustify_Click ()
  481.     Dim rjformat As String
  482.     Dim rjnum As Double
  483.     ShowHelp Btnrightjustify, 0, 0
  484.     rjformat = TxtRJFormat.Text
  485.     rjnum = Val(TxtRJCol)
  486.     printer.Print
  487.     pcol = RB_Rjustify(Val(TxtRJNum.Text), rjformat, rjnum)
  488.     printer.Print
  489. End Sub
  490. Sub Btnrightjustify_GotFocus ()
  491.     cmsg.Caption = Btnrightjustify.Tag
  492. End Sub
  493. Sub Btnrightjustify_LostFocus ()
  494.     cmsg.Caption = ""
  495. End Sub
  496. Sub Btnrightjustify_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  497.     ShowHelp Btnrightjustify, X, Y
  498. End Sub
  499. Sub ChkNewLine_GotFocus ()
  500.     cmsg.Caption = ChkNewLine.Tag
  501. End Sub
  502. Sub ChkNewLine_LostFocus ()
  503.     cmsg.Caption = ""
  504. End Sub
  505. Sub Command3D2_Click ()
  506.     Unload form1
  507. End Sub
  508. Sub Command3D2_GotFocus ()
  509.     cmsg.Caption = Command3d2.Tag
  510. End Sub
  511. Sub Command3D2_LostFocus ()
  512.     cmsg.Caption = ""
  513. End Sub
  514. Sub Command3D2_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  515.     ShowHelp Command3d2, X, Y
  516. End Sub
  517. Sub FldGotFocus (PControl As Control)
  518.     PControl.BackColor = BLUE
  519.     PControl.ForeColor = WHITE
  520.     PControl.SelStart = 0
  521.     PControl.SelLength = 1000
  522.     cmsg.Caption = PControl.Tag
  523. End Sub
  524. Sub FldLostFocus (PControl As Control)
  525.     PControl.BackColor = RB_GRAY
  526.     PControl.ForeColor = BLACK
  527.     cmsg.Caption = ""
  528. End Sub
  529. Sub Form_Load ()
  530.     rb_systemname = "RDBLIB Demo"
  531.     rb_version = "1.2"
  532.     printer.ScaleMode = 4
  533.     printer.ScaleLeft = -10
  534. End Sub
  535. Sub MnuAbout_Click ()
  536.     LogoForm.Show MODAL
  537. End Sub
  538. Sub MnuCenter_Click ()
  539.     BtnCenter_click
  540. End Sub
  541. Sub MnuErrHelp_Click ()
  542.     CMDialog1.HelpCommand = HELP_INDEX
  543.     CMDialog1.Action = 6
  544. End Sub
  545. Sub MnuFormat_Click ()
  546.     BtnFormat_Click
  547. End Sub
  548. Sub MnuGenErr_Click ()
  549.     BtnGenError_Click
  550. End Sub
  551. Sub MnuPrint_Click ()
  552.     BtnEject_Click
  553. End Sub
  554. Sub MnuRightJustify_Click ()
  555.     BtnRightJustify_Click
  556. End Sub
  557. Sub ShowHelp (PBtn As Control, px As Single, py As Single)
  558. ' Subroutine to show popup help for a control
  559. ' To use:
  560. '    add a panel control called PnlHelp to the form
  561. '    Set control's tag property to help message desired
  562. '    Copy this subroutine to the form code and uncomment code below
  563. '    In mousemove event of control add
  564. '       ShowHelp control-name, x, y
  565. '    In click event or other events of control that cause action add
  566. '       ShowHelp control-name, 0, 0     ' Hides help
  567.     Dim maxx As Single, maxy As Single
  568.     Dim nPnlTop As Single, nPnlLeft As Single
  569.     ' Determine max x & y coordinates with 80 twip border
  570.     ' boundry of 80 twips allowed to be able to catch cursor as exiting control
  571.     maxx = PBtn.Width - 80
  572.     maxy = PBtn.Height - 80
  573.     ' if exiting control area turn off help panel
  574.     If px < 80 Or py < 80 Or px > maxx Or py > maxy Then
  575.         PnlHelp.Visible = False
  576.         PnlHelp.Caption = ""
  577.         Exit Sub
  578.     End If
  579.     ' Determine location for help panel
  580.     ' Assume below and to right
  581.     nPnlTop = PBtn.Top + PBtn.Height + 40
  582.     nPnlLeft = PBtn.Left + 100
  583.     ' Put panel above control if not enough room below
  584.     If nPnlTop + PnlHelp.Height > Height - 1024 Then
  585.         nPnlTop = PBtn.Top - PnlHelp.Height - 40
  586.     End If
  587.     ' Put panel to left if not enough room to right
  588.     If nPnlLeft + PnlHelp.Width > Width - 500 Then
  589.         nPnlLeft = PBtn.Left + PBtn.Width - 40
  590.     End If
  591.     ' if same settings exit to prevent flickering effect
  592.     If PnlHelp.Caption = PBtn.Tag And PnlHelp.Top = nPnlTop And PnlHelp.Left = nPnlLeft Then
  593.         Exit Sub
  594.     End If
  595.     ' get help msg from control's tag and position help panel
  596.     PnlHelp.Caption = PBtn.Tag
  597.     PnlHelp.Top = nPnlTop
  598.     PnlHelp.Left = nPnlLeft
  599.     PnlHelp.Visible = True
  600. End Sub
  601. Sub Txtctrline_GotFocus ()
  602.     FldGotFocus TxtCtrLine
  603. End Sub
  604. Sub Txtctrline_LostFocus ()
  605.     FldLostFocus TxtCtrLine
  606. End Sub
  607. Sub Txtctrstring_GotFocus ()
  608.     FldGotFocus TxtCtrString
  609. End Sub
  610. Sub Txtctrstring_LostFocus ()
  611.     FldLostFocus TxtCtrString
  612. End Sub
  613. Sub TxtDate_GotFocus ()
  614.     FldGotFocus TxtDate
  615. End Sub
  616. Sub TxtDate_LostFocus ()
  617.     If Not RB_Validate_Date(TxtDate) Then
  618.         TxtDate.SetFocus
  619.         Exit Sub
  620.     End If
  621.     FldLostFocus TxtDate
  622. End Sub
  623. Sub TxtErrorNum_GotFocus ()
  624.     FldGotFocus TxtErrorNum
  625. End Sub
  626. Sub TxtErrorNum_LostFocus ()
  627.     FldLostFocus TxtErrorNum
  628. End Sub
  629. Sub Txtfmtline_GotFocus ()
  630.     FldGotFocus TxtFmtLine
  631. End Sub
  632. Sub Txtfmtline_LostFocus ()
  633.     FldLostFocus TxtFmtLine
  634. End Sub
  635. Sub Txtformatstring_GotFocus ()
  636.     FldGotFocus TxtFormatString
  637. End Sub
  638. Sub Txtformatstring_LostFocus ()
  639.     FldLostFocus TxtFormatString
  640. End Sub
  641. Sub Txtprintwidth_GotFocus ()
  642.     FldGotFocus TxtPrintWidth
  643. End Sub
  644. Sub Txtprintwidth_LostFocus ()
  645.     FldLostFocus TxtPrintWidth
  646. End Sub
  647. Sub Txtrjcol_GotFocus ()
  648.     FldGotFocus TxtRJCol
  649. End Sub
  650. Sub Txtrjcol_LostFocus ()
  651.     FldLostFocus TxtRJCol
  652. End Sub
  653. Sub Txtrjformat_GotFocus ()
  654.     FldGotFocus TxtRJFormat
  655. End Sub
  656. Sub Txtrjformat_LostFocus ()
  657.     FldLostFocus TxtRJFormat
  658. End Sub
  659. Sub Txtrjnum_GotFocus ()
  660.     FldGotFocus TxtRJNum
  661. End Sub
  662. Sub Txtrjnum_LostFocus ()
  663.     FldLostFocus TxtRJNum
  664. End Sub
  665.